package com.jx.driving.transform;

import java.io.InputStream;

/**
 * 数据转换接口
 * 
 * @author wuxiaozeng
 * 
 */
public interface Transform {

    /**
     * 将对象转成byte[]
     */
    public byte[] transformObjectToByteArray(Object source);

    /**
     * 将字符串转成对象
     * 
     */
    public <T> Object transformToObject(InputStream in, Class<?> objectClass);

}
